/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ar.com.wholeconsulting.pacc.model;

/**
 * 
 * @author pable
 */
public enum MetodoSoldadura {

	GMAW_INT_SAW_EXT("GMAW INT.-SAW EXT."), GMAW_INT_SMAW_EXT("GMAW INT.-SMAW EXT."), GMAW_SAW_EXT("GMAW + SAW EXT."), GMAW_SMAW_EXT("GMAW + SMAW EXT."), SMAW_EXT_6010_7015("SMAW EXT.(6010/7015)"), NO_APLICA("N/A"), GMAW_EXT_SAW_EXT("GMAW EXT.-SAW EXT."), GMAW_EXT_SMAW_EXT("GMAW EXT.-SMAW EXT."), GTAW_INT_SMAW_EXT("GTAW INT.-SMAW EXT."), SIN_COSTURA("SIN COSTURA"), SMAW_EXT("SMAW EXT."), SMAW_INT_SMAW_EXT_("SMAW INT.-SMAW EXT.");

	private String descripcion;

	private MetodoSoldadura(String desc) {
		this.descripcion = desc;
	}

	@Override
	public String toString() {
		return this.descripcion;
	}

	public static MetodoSoldadura fromString(String desc) {
		desc = desc.trim();
		MetodoSoldadura metodo = MetodoSoldadura.NO_APLICA;
		for (MetodoSoldadura m : MetodoSoldadura.values()) {
			if (desc.equals(m.toString())) {
				metodo = m;
			}
		}
		return metodo;
	}

}
